package com.shop.models;

import com.google.gson.Gson;

public class ResultMap {
	private int code;
	private String message;
	private String json;
	public ResultMap() {
		
	}
	public ResultMap(int code,String message) {
		this.code = code;
		this.message = message;
	}
	public ResultMap(int code,String message,Object data) {
		this.code = code;
		this.message = message;
		this.json = new Gson().toJson(data);
	}
	public int getCode() {
		return code;
	}
	public void setCode(int code) {
		this.code = code;
	}
	public String getMessage() {
		return message;
	}
	public void setMessage(String message) {
		this.message = message;
	}
	public String getJson() {
		return json;
	}
	public void setJson(String json) {
		this.json = json;
	}
}
